Method: Jsonify::Builder#<<

Defined in:
lib/jsonify/builder.rb

#<<(val) ⇒ Object

Append – pushes the given object on the end of a JsonArray.



95
96
97
98
99
# File 'lib/jsonify/builder.rb', line 95

def <<(val)
  __array
  @stack[@level].add val
  self
end